﻿<sap:ActivityDesigner x:Name="ActivityDesigner" x:Class="WFExtended.Activities.Designers.WcfOperationInvokerDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:m="clr-namespace:System;assembly=mscorlib"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation"
    xmlns:wfes="clr-namespace:WFExtended.Framework.ServiceModel">
    <sap:ActivityDesigner.Resources>
        <ResourceDictionary>
            <sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" />
        </ResourceDictionary>
    </sap:ActivityDesigner.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel x:Uid="stackPanel" Grid.Row="0" Orientation="Horizontal">
            <TextBlock x:Uid="textBlockProxy" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0">Proxy : </TextBlock>
            <sapv:ExpressionTextBox 
          HintText="Wcf Proxy"
          Expression="{Binding Path=ModelItem.Proxy, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In }"
          ExpressionType="wfes:AWcfProxy"
          OwnerActivity="{Binding Path=ModelItem}"
          Width="110"
          Margin="0,5"
          Grid.Row="0"
          Grid.Column="0"
          MaxLines="1"  />
        </StackPanel>
        <StackPanel x:Uid="stackPanel" Grid.Row="1" Orientation="Horizontal">
            <TextBlock x:Uid="textBlockOperation" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0">Operation :</TextBlock>
            <TextBox x:Uid="operationBox" Name="operationBox" AutomationProperties.AutomationId="ArgumentName"
                            AutomationProperties.Name="OperationName"
                            Width="100"  Margin="7,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Center"
                            Text="{Binding Path=ModelItem.OperationName, Mode=TwoWay, ValidatesOnExceptions=True}"/>
        </StackPanel>
    </Grid>
</sap:ActivityDesigner>
